package com.jy.adscm.operation.hscrb.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jy.adscm.operation.hscrb.bean.SjInspectiondetail;
import com.jy.adscm.operation.hscrb.mapper.mysql.SjInspectiondetailMapper;
import com.jy.adscm.operation.hscrb.service.SjInspectiondetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zyl
 * @since 2018-12-14
 */
@Service
public class SjInspectiondetailServiceImpl extends ServiceImpl<SjInspectiondetailMapper, SjInspectiondetail> implements SjInspectiondetailService {

    @Override
    public Boolean updateSjInspectiondetail(SjInspectiondetail sjInspectiondetail) {
        boolean update = super.updateById(sjInspectiondetail);
        return  update;
    }

    @Override
    public List<SjInspectiondetail> selectByTid(String tid) {
        Wrapper<SjInspectiondetail> wrapper =new EntityWrapper<>();
        wrapper.eq("TID",tid);
        List<SjInspectiondetail> SjInspectiondetails = super.selectList(wrapper);
        return SjInspectiondetails;

    }
}
